package com.reader.api.service.usercenter;

import com.reader.api.exception.register.RegisterException;

/**
 * @author liujianqing
 * @date 2018/10/24
 */
public interface RegisterService {
    /**
     * 发送注册验证码.
     *
     * @param mobile
     * @param ip
     * @return
     */
    public boolean sendRegisterMobileCode(String mobile, String ip);

    /**
     * 判断手机和ip是否可以继续发送验证码.
     * @param mobile
     * @param ip
     * @return
     */
    public boolean checkMobileAndIpCanSendCode(String mobile, String ip) throws RegisterException;

    /**
     * check验证码.
     *
     * @param mobile
     * @param mobileCode
     * @return
     */
    public boolean isRightMobileCode(String mobile, String mobileCode);
}
